package com.sky.mapper.user;

import com.sky.pojo.Merchant;
import com.sky.pojo.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    @Select("select * from user where openid=#{openId}")
    User selectByOpenId(String openId);

    /**
     * 根据id查询
     * @param user
     */
    void save(User user);
    @Select("select * from user where id=#{id}")
    public User selectById(Long id);
}